<?php
/**
 * Created by PhpStorm.
 * User: Lin Hui
 * Date: 2017/5/20
 * Time: 16:33
 */

namespace Home\Controller;


use Think\Controller;

class BaseController extends Controller
{
    protected $website_info = array();
    /**
     *初始化
     */
    public function _initialize()
    {
        $this->website_info = getWebsiteInfo();

        $this->assign('links', getLink());
        $this->assign('website_info', $this->website_info);
    }

    /**
     * 空控制器跳转页面
     */
    public function _empty()
    {
        $this->redirect('Public/lose');
        exit;
    }
}